package com.taiyi.crm.service;

import com.taiyi.crm.pojo.entity.Role;
import com.taiyi.crm.pojo.vo.LayUISelectMVO;
import com.taiyi.crm.util.LayUITableResult;

import java.util.List;
import java.util.Map;

public interface IRoleService {

    LayUITableResult list(Integer page, Integer limit, Role role);

    void deleteById(Integer id);

    void deleteAll(String ids);

    void insert(Role role, String permissions);

    Role selectByPrimaryKey(Integer roleId);

    Map<String, Object> selectRoleAndPermisssions(Integer roleId);

    void update(Role role, Integer[] permissions);

    List<LayUISelectMVO> selectAllRoles();

}